package com.ruoyi.project.tool.swagger.UserController;

import com.ruoyi.framework.aspectj.lang.annotation.SignatureValidation;
import com.ruoyi.framework.interceptor.annotation.RepeatSubmit;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.domain.SysType;
import com.ruoyi.project.system.service.ISysTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mobileUser/type")
public class UserTypeController {

    @Autowired
    private ISysTypeService sysTypeService;
    @SignatureValidation
    @PostMapping("queryChildrenType")
    @RepeatSubmit
    public AjaxResult queryChildrenType(@RequestBody SysType sysType){
        return AjaxResult.success(sysTypeService.queryChirdrenName(sysType));
    }
}
